import numpy as np
import random

t1 = np.array([1,2,3])
print(t1)
print(type(t1))

t2 = np.array(range(10))
print(t2)
print(type(t2))

t3 = np.arange(10)
print(t3)
print(type(t3))
print(t3.dtype)

t4 = np.arange(10,dtype=object)
print(t4)
print(type(t4))
print(t4.dtype)

t5 = np.array([1,0,9,4,6,0],dtype = bool)
print(t5)
print(type(t5))
print(t5.dtype)

t6 = t5.astype(int)
print(t6)
print(type(t6))
print(t6.dtype)

t7 = np.array([random.random() for i in range(10)])
print(t7)

t8 = np.round(t7,3)
print(t8)
